#ifndef PROTOCALINTERFACE_H
#define PROTOCALINTERFACE_H
#include "pugixml/pugixml.hpp"
#include <QWidget>
class ProtocalInterface {
public:
    virtual ~ProtocalInterface() {}
    virtual QWidget* getWidget() = 0;
    virtual void InitData(pugi::xml_node node) = 0;
};

//一定是唯一的标识符
#define ProtocalInterface_iid "Examples.Plugin.ProtocalInterface"

QT_BEGIN_NAMESPACE
Q_DECLARE_INTERFACE(ProtocalInterface, ProtocalInterface_iid)
QT_END_NAMESPACE

class UpdateProtocalInterface {
public:
    virtual ~UpdateProtocalInterface() {}
    virtual QWidget* getWidget() = 0;
    virtual void InitData(pugi::xml_node node) = 0;
    virtual void SetCollectData(void* channel, void* collect) = 0;
};

//一定是唯一的标识符
#define UpdateProtocalInterface_iid "Examples.Plugin.UpdateProtocalInterface"

QT_BEGIN_NAMESPACE
Q_DECLARE_INTERFACE(UpdateProtocalInterface, UpdateProtocalInterface_iid)
QT_END_NAMESPACE

#endif // PROTOCALINTERFACE_H
